package com.zb.sannuo.account.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zb.sannuo.account.dao.AccountPageMapper;
import com.zb.sannuo.account.service.AccountPageService;
import com.zb.sannuo.common.domain.search.LoginRoleDrugstoreSearch;
import com.zb.sannuo.common.domain.vo.LoginRoleDrugstoreVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AccountPageServiceImpl extends ServiceImpl<AccountPageMapper, LoginRoleDrugstoreVo> implements AccountPageService {

    @Resource
    private AccountPageMapper accountMapperImpl;

    @Override
    public Page selectPage(int current, int number, LoginRoleDrugstoreSearch search) {
        Page page = new Page(current,number);
        return page.setRecords(accountMapperImpl.query(page,search));
    }
}
